﻿using CheatMenu.Menus;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace CheatMenu.Utils
{
    public class Notification
    {
        public float BeginTime;
        public string HeaderText;
        public string BodyText;
        private bool firstUpdate = true;

        public Notification(string header, string body)
        {
            HeaderText = header;
            BodyText = body;
        }

        public bool UpdateAndCheckIfDone()
        {
            if (firstUpdate)
            {
                firstUpdate = false;
                BeginTime = Time.realtimeSinceStartup;
            }

            return  (Time.realtimeSinceStartup - BeginTime) > MenuNotifications.ShownTimeout;
        }
    }
}
